import Handle from "./handle";
import SingletonMessage from "@/utils/message";

/**
 * 成功处理器策略
 *
 */
export default class handleSuccess extends Handle {
  action(_, res) {
    if (res.data.message && res.data.message !== "success") {
      SingletonMessage.success(res.data.message);
    }
    return super.action(_, res);
  }
}
